package com.longge;

import java.util.ArrayList;
import java.util.List;

public class FindWordsContaining {

    public List<Integer> findWordsContaining(String[] words, char x) {
        ArrayList<Integer> ans = new ArrayList<>();

        for (int i = 0; i < words.length; i++) {
            if (words[i].contains(x+"")){
                ans.add(i);
            }
        }
        return ans;
    }
}
